/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: PurchaseRequest
 * @author: xiayuanxing
 * @description: 请求类
 * @date: 2022/2/11 14:19
 * @version: 1.0
 */
public class PurchaseRequest {


    /** 请求类型*/
    private int type = 0;

    /**请求金额*/
    private float price = 0.0f;

    /**id*/
    private int id = 0;

    //构造器
    public PurchaseRequest(int type, float price, int id) {
        this.type = type;
        this.price = price;
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public float getPrice() {
        return price;
    }

    public int getId() {
        return id;
    }
}

